import { request } from "@/api-services/request";
import { SetUserFolderRequest, SysUser, SysUserFolder } from "../models";

export default {
  AllUser() {
    return request.post<SysUser[]>("/SysUser/AllUser");
  },
  GetFolderByUser(userId: Number) {
    return request.post<SysUserFolder[]>(
      `/SysUser/GetFolderByUser?userId=${userId}`
    );
  },
  SetUserFolder(data: SetUserFolderRequest) {
    return request.post("/SysUser/SetUserFolder", data);
  },
  ModifyPassword(password: string) {
    return request.get(`/SysUser/ModifyPassword?password=${password}`);
  },
};
